package com.ins1st.modules.xs.service;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ins1st.modules.xs.entity.Student;
import com.ins1st.modules.xs.mapper.StudentMapper;

@Service
@Transactional
public class StudentService extends ServiceImpl<StudentMapper, Student> {

	public List<Student> findAll() {
		return getBaseMapper().findAll();
	}

	public List<Map<String, Object>> findAll2(String name, int age) {
		return getBaseMapper().findAll2(name, age);
	}

	public IPage findPage(IPage page) {
		return page.setRecords(getBaseMapper().findPage(page));
	}
	
	public List<Student> find4() {
		return getBaseMapper().find4();
	}

	public List<Map<String, Object>> find5(String name, int age) {
		return getBaseMapper().find5(name, age);
	}

	public IPage find6(IPage page) {
		return page.setRecords(getBaseMapper().find6(page));
	}
	
	
	public List<Map<String, Object>> findAll2(Student student) {
		return getBaseMapper().findAll2(student);
	}
}
